package com.bwie.common.exception;

/**
 * @ClassName CustomException
 * @Description 描述
 * @Author YuShi.Cui
 * @Date
 */
public class CustomException extends RuntimeException{
    private String msg;
    private Integer code;

    public CustomException(Integer code,String message) {
        this.code=code;
        this.msg=message;
    }



    public String getCustomMessage() {
        return msg;
    }

    @Override
    public String toString() {
        return "错误信息:\n" +
                "code: " + code + '\n' +
                "msg: " + msg;
    }
}
